package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 酒店订单信息
 */
@Setter
@Getter
public class HotelForm extends BaseDomain{

    //入住时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date beginDate;

    //退房时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date endDate;

    //房间数
    private Integer roomNumber;

    //总金额
    private BigDecimal totalPrice;

    //所属酒店
    private Hotel hotel;

    //用户
    private User user;

    //备注
    private String remark;

}